import { Component } from "react";

export interface ITablePageProp { 
    url: string;
    metadataUrl: string;
    dataUrl: string;
}

export class TablePage extends Component<ITablePageProp> { 
    constructor(props: any) { 
        super(props);;
    }
    //页面渲染完成后开始获取数据
    componentDidMount() { 
        let url = this.props.url;
        let metadataUrl = this.props.metadataUrl;
        if (!metadataUrl) { 
            metadataUrl = url + '/metadata';
        }
        let dataUrl = this.props.dataUrl;
        if (!dataUrl) { 
            dataUrl = url + '/';
        }
    }

    render() { 
        return (<table></table>);
    }
}